#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void print(int* p, size_t x)
{
	int i = 0;
	for (i = 0; i < x; i++)
	{
		printf("%d ", *p++);
	}
}

int main()
{
	size_t num = 0;
	int arr[] = { 1, 2, 3, 4, 5 };

	num = sizeof(arr) / sizeof(arr[0]);

	print(arr, num);
	return 0;
}